package com.cql.common.core.DTO;

import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author cql
 */
@Data
public class MenuDTO implements Serializable {

    private Long menuId;

    private String name;

    private String desc;

    private Long level;

    private Long time;

    private Long taste;

    private Long mode;

    @Size(min = 1, max = 5, message = "最多设置五个烹饪工具,至少设置一个烹饪工具")
    private List<Long> tools;

    private String trick;

    private Integer dataScope;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 主料
     */
    @Size(min = 1, max = 20, message = "最多可设置20种主料")
    private List<MaterialDTO> mainMaterials;

    /**
     * 调料
     */
    @Size(min = 1, max = 20)
    private List<MaterialDTO> otherMaterials;


    /**
     * 辅料
     */
    @Size(min = 1, max = 20)
    private List<MaterialDTO> assistMaterials;


    /**
     * 步骤
     */
    @Size(min = 1, max = 20, message = "最多可设置20个步骤")
    private List<StepDTO> steps;
    /**
     * 成品图
     */
    @Size(min = 1, max = 9, message = "最多可设置9张成品图,至少设置一张成品图")
    private List<PictureDTO> covers;

}
